package com.spring.framework.model.learn;

import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author xuweizhi
 */
@Data
@ToString
@Component
public class School {

	private String hello = "hello";

	@Resource
	private Address address;

	public School() {
		System.out.println("school");
	}

	public School(String hello, Address address) {
		this.hello = hello;
		this.address = address;
		System.out.println("school test");
	}
}
